from rest_framework import serializers
from .models import *


class UserSer(serializers.ModelSerializer):
    class Meta:
        model = UserModel
        fields = '__all__'


class UserListSer(serializers.ModelSerializer):
    class Meta:
        model = UserModel
        fields = ['id', 'username', 'phone', 'email']


class AreaSer(serializers.ModelSerializer):
    class Meta:
        model = AreaInfoModel
        fields = '__all__'


class AddressSer(serializers.ModelSerializer):
    class Meta:
        model = AddressModel
        fields = '__all__'


class AddressListSer(serializers.ModelSerializer):
    class Meta:
        model = AddressModel
        fields = '__all__'


